# To change this template, choose Tools | Templates
# and open the template in the editor.

__author__="abhi"
__date__ ="$27 Mar, 2010 10:16:41 PM$"

class Queue(list):
    def __init__(self,*args,**kwargs):
        list.__init__(self,*args,**kwargs)
    def enqueue(self,member):
        self.insert(0,member)
    def dequeue(self):
        return self.pop()

if __name__ == "__main__":
    print "Hello World";

    a = Queue()

    a.enqueue(1)
    print(a)
    a.enqueue(5)
    print(a)
    print(a.dequeue())
